home *** CD-ROM | disk | FTP | other *** search
-
- Apple and Atari must over the serial Opening connected be!
-
- On the Apple must ON Driver-Program started become, that z.B. so
- look could (under APPLESOFT-BASIC):
-
- Number. Zeileninhalt Comment
-
- 10 ONERR GOTO 500 Error-handling, s.u.
- 20 D$=CHR$(4) Control characters for DOS-Operations
- 30 HOME
- 40 Print "Text-Files For Atari
- Transfer:"
- 50 Print "('C1'=CATALOG,D1 ; Activate beider Disk-drive, and
- 'C2'=CATALOG,D2)" Possibility for Change
- 60 Print
- 70 Input "Name = ?";F$ Filenames enter,input (Type "T" !)
- 80 IF LEN(F$) < 1 THEN 490 Abort, when only <CR> pressed
- 90 IF F$ <> "C1" Wochs F$ <> "C2" none "Catalog", none Empty string,
- THEN 130 so Start
- 100 Print D$;"CATALOG" + Disc-Table of contents show
- RIGHT$(F$,2)
- 110 Print
- 120 GOTO 40 New Input-Trial
- 130 Print D$;"APPEND ";F$ Used for Quiz, whether File existing;
- 140 Print D$;"Close ";F$ "open" dignity him otherwise create.
- 150 Print D$;"Open ";F$ If File existing: Start
- 160 Print D$;"Read ";F$
- 170 E%=1 Always Variables instead Number !
- 180 S%=8191 The Bytes become from HGR1 laydown;
- 190 N%=0 max. until $9600 (ago DOS),= 31Kbyte
- 200 N%=N%+E% Loop with Zaehlererhoehung
- 210 Get B$ Byte read
- 220 POKE S%+N%, ASC(B$) zwischenspeichern
- 225 A=FRE(0) **** s.u. ****
- 230 GOTO 200 weiterlesen; Stop over Error-Routine
- 240 Print D$;"Close" Read ready
- 250 A=Int( N% / 256 ) High-Byte the Byteanzahl (8 Bit!)
- 260 B=N% - 256*A Low-Byte
- 270 Print N%;" Bytes Become Length announce
- Transfer"
- 280 Print
- 290 Print "Transfer Broken Text for Control (s. Procedure)
- (J/N) " as soon as s.Line 320-350
- 300 Print D$;"PR#2" Slot the serial Opening
- 310 Print CHR$(A), CHR$(B) Length in the 2-Byte-Calibre transfer
- 320 L=PEEK(-16384) Speicherzelle the Tastatureingabe
- 330 IF L>127 THEN 360 Key-pad becomes pressed
- 340 T=PEEK(-16336) if not: Akustisches Signal give
- 350 GOTO 320 and wider on Answer wait
- 360 POKE -16368,0 Tastatureingabe again release
- 370 IF L=202 THEN 420 "J" becomes gave => Abort
- 380 For I=1 Beware N% If not: transfer
- 390 Print CHR$( PEEK( S% + I )); CHR$() for Byte-weisen transfer
- 400 NEXT I
- 410 Print must be; last Sign therefore <CR>
- 420 Print D$;"PR#0" backward for Terminal
- 430 Print
- 440 Input "Still ON File That Whole natural any often
- Transfer (J/N) ? ";A$
- 450 IF LEFT$(A$,1) <> "J" THEN 490 transfer completed,finished
- 460 ONERR GOTO 500 Reactivate the Error-Routine (becomes
- 470 HOME through File-End de-activated)
- 480 GOTO 40 And (once) again«more» from ahead
- 490 End
- 500 E=PEEK(222) Content the Error report
- 510 POKE 216,0 Error-Index backspace
- 520 Print
- 530 IF E=6 THEN 570 came from Line 130, File not existing
- 540 IF E=5 THEN 240 came from Line 210, so EOF achieves
- 550 Print "Error ";E all other Error
- 560 GOTO 490
- 570 Print "Give'S Not!" Falser Filename gave
- 580 ONERR GOTO 500 Reactivate, s.o.
- 590 GOTO 40 and next Trial start
-
- Compilieren, z.B. with the TASC-Compiler brings one whole Quantum, ago
- after all works that Disk-drive of the Apple then through, instead after every Sector
- short to chop, aside... :
-
- **** The Command A=FRE(0) conditioned, that in the Variables-management on-
- geraeumt is: The Stringvariable B$ from Line 210 is under Applesoft
- namely not overwrite, but everytime new has been installed. That
- drived to one ueberlauf, when B$ to often emerged, through which the over-
- tragung totally durcheinandergeraet.
- On the other hand last straight this Command Fre(0) right reach, so that
- also near one compilierten Program (s.o.) that Disk-drive after every
- Sector short anhaelt.
- Comprises so the Textfile from only wenigen Sectors (z.B. 10), can
- the Line 225 distant become; that dignity he who Einlesevorgang on the
- Apple essential accelerate.
- One should himself perhaps 2 Program on the Apple generate and then
- compilieren, one with, and one without Line 225.
-
- Atari-seitig is either under GFA-BASIC that Program Apple.BAS
- started, or equal that already compilierte Program Apple.PRG,
- which natural all something expedited.
-
- The "procedure" is then how follows:
- - On both Computer the Program start
- - Atari-Program until to the Inquiry "V24-Opening ready for
- transfer?" run leave (including,inclusive the "O.K."-Clicking!).
- - Apple Program until including,inclusive the File-Inquiry cross,pass,traverse
- leave
- - After the Apple the Number the Bytes indicated has, holds he (in one
- Endless-loop, Line 320-350) on.
- On this Place dignity the two Bytes transfer, the the Length the
- to uebertragenden Bytes contain,enclose,hold. This Number is also on the
- Atari show, and it appears one Alert-Box, in the this Length
- confirmed,verified become should.
- * If both Lengths not concur, is through Mouse-clicking on the
- "no"-Box that Program on the Atari stopped. On the Apple must
- then still ON "J" gave become, and also this Program is
- stopped.
- * If both Lengths yet concur (this should the Default
- be!), next on the Atari the "yes"-Box mouse-clicking on, then on the
- Apple some Key-pad (aside "J"!!) press,push, z.B. the Space-Key-pad.
- - Apple is then next ready. If none other Textfile transfer
- become should, <CR> press,push and switch off.
- - Data file on the Atari how desire weiterbearbeiten, print
- and/or store.
- - New transfer sinngemaess.
-
- (The Control the Number the to uebertragenden Bytes is in this respect sense-
- full, then,there,since on the V24-Opening (on the Apple-Map or also in the
- Atari-Buffer) still old Date placed can; the Atari anticipated,expected then
- one false Number from Bytes and "depends himself on", how one so beautiful
- say.)
-
- Much Fun with it, near me ran the transfer good!
-
- Rolf Henke, Blumenthalstr. 12, 2800 Bremen 1, d.25.01.1988
- (That is the Address, on the the many Geldscheine manipulate become
- be expected to!!!)
-
-